cmake_minimum_required(VERSION 3.2.2)
project(NetworkServices)
add_definitions(-g)

set(CMAKE_CXX_STANDARD 17)

include_directories(src/common)
if (${NET_VAR} STREQUAL "Server")
    aux_source_directory(src/server SERVER_CPP)
    add_executable(server src/test/TcpServerTest.cpp ${SERVER_CPP})
elseif (${NET_VAR} STREQUAL "Client")
    aux_source_directory(src/client CLIENT_CPP)
    add_executable(client src/test/TcpClientTest.cpp ${CLIENT_CPP})
endif ()
